﻿
SET QUOTED_IDENTIFIER ON
GO

SET ANSI_NULLS ON
GO

IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_WA_UpdateComanyDutyTime]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_WA_UpdateComanyDutyTime];
GO
CREATE PROCEDURE [dbo].[sproc_WA_UpdateComanyDutyTime]
	@OnDutyTime datetime,
	@OffDutyTime datetime
AS
/*------------------------------------
功能：修改公司上班时间
参数：
    @ondutytime    上班时间
    @offdutytime    下班时间
-------------------------------------*/
BEGIN
SET NOCOUNT ON

update dbo.UDS_WorkAttendence_DutyTime set ondutytime = @ondutytime, offdutytime = @offdutytime where id = 0;

END
GO